//
//  DDStatusCellBottonView.swift
//  SinaMicroBlogSwift2
//
//  Created by dqw on 15/8/3.
//  Copyright © 2015年 itcast. All rights reserved.
//

import UIKit

class DDStatusCellBottonView: UIView {

    
    override init(frame: CGRect) {
        super.init(frame: frame)
        addAndLayoutSubviews()
        backgroundColor = UIColor.redColor()
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    private func addAndLayoutSubviews() {
        
        addSubview(forwardButton)
        addSubview(commentButton)
        addSubview(likeButton)
        
        ff_HorizontalTile([forwardButton, commentButton, likeButton], insets: UIEdgeInsetsZero)
    }
    
    
// MARK: - 懒加载子控件。
    private lazy var forwardButton: UIButton = UIButton(title: " 转发", imageName: "timeline_icon_retweet")
    private lazy var commentButton: UIButton = UIButton(title: " 评论", imageName: "timeline_icon_comment")
    private lazy var likeButton: UIButton = UIButton(title: " 赞", imageName: "timeline_icon_unlike")
}
